import yagmail
def send_mail(file):
    meil=yagmail.SMTP(user="3421804764@qq.com",password="ubnavehqwgiddcbe",host="smtp.qq.com")
    meil.send(to="3421804764@qq.com",subject="测试报告",contents="这个一个测试报告",attachments=file)